package com.fushenlan.dto;


import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 人员信息返回结果
 */
@Data
@ApiModel("人员信息返回结果")
public class PersonalInfoRespDTO {

    /**
     * 居民id
     */
    @ApiModelProperty("居民id")
    private Long userId;

    /**
     * 居住地址
     */
    @ApiModelProperty("居住地址")
    @Excel(name = "居住地址", width = 30,fixedIndex = 0)
    private String homeName;

    /**
     * 居民姓名
     */
    @ApiModelProperty("居民姓名")
    @Excel(name = "姓名", width = 15,fixedIndex = 1)
    private String userName;

    @ApiModelProperty("所在小区")
    private String residentialName;

    @ApiModelProperty("所在楼栋")
    private String buildingName;

    @ApiModelProperty("所在室")
    private String houseName;

    /**
     * 手机号码
     */
    @ApiModelProperty("手机号码")
    @Excel(name = "手机号码", width = 15,fixedIndex = 2)
    private String phoneNumber;

    /**
     * 1-阳性,2-阴性
     */
    @ApiModelProperty("1-阳性,2-阴性")
    private String healthStatus;

    /**
     * 人员状态-1-未转运、2-已转运、3-已治愈
     */
    @ApiModelProperty("人员状态-1-未转运、2-已转运、3-已治愈")
    @Excel(name = "当前状态", width = 15,fixedIndex = 3,replace = {"未转运_1","已转运_2","已治愈_3"})
    private String userStatus;

    @ApiModelProperty("是否登记 1-是 0-否")
    private String ifRegister;

    @ApiModelProperty("转运日期")
    private LocalDateTime transportTime;

    @ApiModelProperty("回家日期")
    private LocalDateTime homeTime;

    @ApiModelProperty("检测日期")
    private LocalDateTime detectionTime;


    public String getHomeName() {
        return residentialName+buildingName+houseName;
    }
}
